<template>
	<view class="title">
		<image :src="iconPath" class="icon"></image>
		<view class="word">
			{{title}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props:["title","iconPath"]
	}
</script>

<style scoped>
.title{
	display: flex;
	align-items: center;
	padding: 20upx;
}
.icon{
	width: 20px;
	height: 20px;
	margin-right: 10upx;
}
.word{
	font-size: 20px;
	font-weight: bold;
}
</style>
